package com.bit.cfdi.web.services;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.dao.DataAccessException;
import org.springframework.stereotype.Service;

import com.bit.cfdi.web.dao.FormaPagoDAO;
import com.bit.cfdi.web.domain.FormaPago;

@Service
public class FormaPagoService {
	
	@Autowired FormaPagoDAO formaPagoDAO;

	public List<FormaPago> getAll() throws DataAccessException {
		return formaPagoDAO.getAll();
	}

	public FormaPago getByDescription(final String description) throws DataAccessException {
		return formaPagoDAO.getByDescription(description);
	}

	public void save(final FormaPago formaPago) throws DataAccessException {
		formaPagoDAO.save(formaPago);
	}
	
}